<?xml version="1.0" encoding="gb2312" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<HTML>
<HEAD>
<TITLE></TITLE>
<META http-equiv="Content-Type" content="text/html; charset=gb2312"/>
<LINK  href="./css/editframe.css" type="text/css" rel="stylesheet" />
<SCRIPT language="JavaScript" src="./js/editframe.js"></SCRIPT>
</HEAD>
<BODY oncontextmenu="return false;" >
<xsl:apply-templates select="DOCUMENT"/>
</BODY>
</HTML>
</xsl:template>
<xsl:template match="DOCUMENT">
		<div class="vmenu_start"></div>		
		<xsl:for-each select="/DOCUMENT/RECORD[position() != last()]">
			<xsl:apply-templates select="."/>
			<div class="vmenu_middle"></div>        
		</xsl:for-each>
		<xsl:for-each select="/DOCUMENT/RECORD[position() = last()]">
			<xsl:apply-templates select="."/>			        
		</xsl:for-each>
		<div class="vmenu_end"></div>
</xsl:template>
<xsl:template match="/DOCUMENT/RECORD">
	<div class="vmenu_text">
		<xsl:attribute name="onclick">shift_vmenu(this,<xsl:value-of select="./ITEM_ID"/>,'<xsl:value-of select="./CLASS_SID"/>')</xsl:attribute>
		<xsl:attribute name="title"><xsl:value-of select="./WEB_NAME"/>-<xsl:value-of select="./ITEM_NAME"/></xsl:attribute>
		<xsl:value-of select="./REF_NAME"/>
	</div>
</xsl:template>
</xsl:stylesheet>